/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niedziela12.pai.webservices;

import com.niedziela12.pai.ejb.entities.Reservation;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;

/**
 *
 * @author Kamil
 */
//@WebService(serviceName = "HotelWebServices")
@Stateless()
public class DummyHotelWebServices {

    /**
     * This is a sample web service operation
     */
//    @WebMethod(operationName = "myHello")
    public String myHello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }
    
//    @WebMethod(operationName = "getMyAllFreeRooms")
    public List<Integer> getMyAllFreeRooms(Date begin, Date end, int capactiy){
        return new ArrayList<Integer>();
    }
    
//    @WebMethod(operationName = "addMyReservation")
    public boolean addMyReservation(com.niedziela12.pai.ejb.entities.Reservation reservation){
        return true;
    }

//    @WebMethod(operationName = "getMyuserAllReservations")
    public List<Reservation> getMyuserAllReservations(int userId){
        //domyslnie od daty biezacej
        return new ArrayList<Reservation>();
    }
}
